// 用户信息模块(局部模块)
export default {
    namespaced: true, // 开启命名空间
    state () {
      return {
        // 用户信息对象 
        userInfo: {
          id: '',
          userName:'',
          avatar:'',
          roleId:'',
          telephone:'',
          mail:''
        }
      }
    },
    mutations: {
      // 更新整体用户信息
      updateUserInfo (state: { userInfo: any; }, payload: any) {
        state.userInfo = payload;
      }
    },
    actions: {
      
    },
    getters: {
  
    }
  }
  
  